// JavaScript Document

$(document).ready(function() {
    delayShow();
});


function delayHide() {
	
	$("#loader").hide();
	$("#maintable").css("visibility","visible");
}



function delayShow() {
  var secs = 300;
  
  $("body").append("<div id='loader' ><img src='images/loader.gif'></div>");
  $("#loader").css({position: "absolute"});
  $("#loader").css({left: $(window).width()/2 - 4, top: $(window).height()/2 - 4});
  
  setTimeout('delayHide();', secs);
}